package com.ruoyi.smart.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.smart.mapper.SmartIdChangeRecordMapper;
import com.ruoyi.smart.domain.SmartIdChangeRecord;
import com.ruoyi.smart.service.ISmartIdChangeRecordService;

/**
 * ID更改记录Service业务层处理
 * 
 * @author minwei
 * @date 2022-04-07
 */
@Service
public class SmartIdChangeRecordServiceImpl implements ISmartIdChangeRecordService 
{
    @Autowired
    private SmartIdChangeRecordMapper smartIdChangeRecordMapper;

    /**
     * 查询ID更改记录
     * 
     * @param id ID更改记录主键
     * @return ID更改记录
     */
    @Override
    public SmartIdChangeRecord selectSmartIdChangeRecordById(Long id)
    {
        return smartIdChangeRecordMapper.selectSmartIdChangeRecordById(id);
    }

    /**
     * 查询ID更改记录列表
     * 
     * @param smartIdChangeRecord ID更改记录
     * @return ID更改记录
     */
    @Override
    public List<SmartIdChangeRecord> selectSmartIdChangeRecordList(SmartIdChangeRecord smartIdChangeRecord)
    {
        return smartIdChangeRecordMapper.selectSmartIdChangeRecordList(smartIdChangeRecord);
    }

    /**
     * 新增ID更改记录
     * 
     * @param smartIdChangeRecord ID更改记录
     * @return 结果
     */
    @Override
    public int insertSmartIdChangeRecord(SmartIdChangeRecord smartIdChangeRecord)
    {
        return smartIdChangeRecordMapper.insertSmartIdChangeRecord(smartIdChangeRecord);
    }

    /**
     * 修改ID更改记录
     * 
     * @param smartIdChangeRecord ID更改记录
     * @return 结果
     */
    @Override
    public int updateSmartIdChangeRecord(SmartIdChangeRecord smartIdChangeRecord)
    {
        return smartIdChangeRecordMapper.updateSmartIdChangeRecord(smartIdChangeRecord);
    }

    /**
     * 批量删除ID更改记录
     * 
     * @param ids 需要删除的ID更改记录主键
     * @return 结果
     */
    @Override
    public int deleteSmartIdChangeRecordByIds(Long[] ids)
    {
        return smartIdChangeRecordMapper.deleteSmartIdChangeRecordByIds(ids);
    }

    /**
     * 删除ID更改记录信息
     * 
     * @param id ID更改记录主键
     * @return 结果
     */
    @Override
    public int deleteSmartIdChangeRecordById(Long id)
    {
        return smartIdChangeRecordMapper.deleteSmartIdChangeRecordById(id);
    }
}
